<!DOCTYPE html>
<html>
<#include "../include/resource.html"> 
<body>
    <#assign nid="zixun">
	<#include "../include/header.html">
	<!--header-end-->
	<link href="${request.getContextPath()}${theme_dir}/media/css/modal.css" rel="stylesheet"
		type="text/css" /> 
	<link href="${request.getContextPath()}${theme_dir}/media/css/tipswindown.css" rel="stylesheet"
		type="text/css" /> 

	<div id="container" class="clearfix">
		<ul id="tab" class="list-tab clearfix">
			<li class="active"><a href="#" data-toggle="tab">个人信息</a>
			</li>
			<li><a href="#" data-toggle="tab">借款列表</a>
			</li>
			<li><a href="#" data-toggle="tab">投资记录</a>
			</li>
		</ul>

		<div id="myTabContent" class="tab-content">

			<!--个人信息-->
			<div class="list-tab-con tab-pane   active" id="grxx">

				<div class="box-detail-u clearfix">
					<div class=" clearfix">
						<#include "../include/userbox.html">
						<#include "../common/function.html">
						<div class="box-info-detail-u">
							<br>
							<div class="alert">
								<span>个人资料</span>
							</div>
							<ul class="clearfix">
								<li>性 别：<#if u?exists&&u.sex?exists&&u.sex=="1">男<#else>女</#if></li>
								<li>年 龄：<#if u.birthday?exists>${(dateformat(u.birthday,'age'))!("-")}岁</#if></li>
								<li>婚姻状况：<#if info??&&info.marry??><@linkage plantext=true default=info.marry></@linkage></#if></li>
								<li>文化程度：<#if info??&&info.education??><@linkage plantext=true default=info.education></@linkage></#if></li>
								<li>每月收入：<#if info??&&info.income??><@linkage plantext=true default=info.income></@linkage></#if></li>
								<li>社 保：<#if info??&&info.shebao??><@linkage plantext=true default=info.shebao></@linkage></#if></li>
								<li>住房条件：<#if info??&&info.housing??><@linkage plantext=true default=info.housing></@linkage></#if></li>
								<li>是否购车：<#if info??&&info.car??><@linkage plantext=true default=info.car></@linkage></#if></li>
								<li>是否逾期：--</li>
							</ul>

							<div class="alert">
								<span>还款信用</span>
							</div>
							 <!-- v1.6.7.2 RDPROJECT-272 wcw 2013-12-25 start -->
							<ul class="clearfix" id="repayment-info-ul">
							<script type="text/javascript" src="${webroot}${theme_dir}/media/js/jquery.js"></script>
							<script type="text/javascript">
							 $(function(){
		                    	  $.ajax({
		    							"url": "${webroot}/invest/detailForRepaymentInfo.html?user_id=${u.user_id}",
		    							"type": "post",
		    							"cache": "false",
		    							"data": {},
		    							"dataType": "json",
		    							"error": function(){
		    							},
		    							"success": function(data){
		    								var userRepayInfo=data.data;
		    								var html_ul=$("#repayment-info-ul");
		    								var html_li=' <li>借款 '+userRepayInfo.borrow_success_count+'次成功</li>'+
		    								            '<li> '+userRepayInfo.flow_borrow_count+' 次流标</li>'+
		    								            '<li>'+userRepayInfo.repay_fail_count+' 笔待还款</li>'+
					    								'<li> '+userRepayInfo.repay_success_count+' 笔已成功还款 </li>'+
					    								'<li>'+userRepayInfo.advance_repay_count+' 笔提前还款</li>'+
					    								'<li>'+userRepayInfo.late_repay_count+'笔迟还款</li>'+
					    								'<li> '+userRepayInfo.overdue_repay_count+'笔30天之内的逾期还款</li>'+
					    								'<li> '+userRepayInfo.overdues_repay_count+' 笔超过30天的逾期还款</li>'+
					    								'<li> '+userRepayInfo.overdue_unrepay_count+' 笔逾期未还款</li>';
					    					html_ul.html(html_li);
		    							} 
		    						});
		                      });
							 </script>
							</ul>
 <!-- v1.6.7.2 RDPROJECT-272 wcw 2013-12-25 end -->
							<div class="alert">
								<span>资料审核</span>
							</div>
							<table border="0" cellspacing="0" width="100%" class="tab1">
								<tr>
									<td><strong>资料类型</strong></td>
									<td><strong>积分</strong>
									</td>
									<td><strong>上传时间</strong>
									</td>
									<td><strong>审核时间</strong>
									</td>
									<td><strong>审核说明</strong>
									</td>
								</tr>
							</table>
						</div>
					</div>
				</div>
			</div>

			<!-- v1.6.7.1 RDPROJECT-356 zza 2013-11-19 start（无分页） -->
			<!--借款列表-->
			<div class="list-tab-con tab-pane " id="jklb">
				<div class=" clearfix">
					<div class="clearfix">
						<#include "../include/userbox.html">
						<div class="box-info-detail-u">
							<br>
							<div class="alert">
								<span>借款记录</span>
							</div>
							<!-- 内容开始 -->
							<table  border="0"  cellspacing="1" class="table table-striped  table-condensed" >
								<tr class="head">
									<!-- v1.6.7.2 RDPROJECT-564 zza 2013-12-11 start -->
									<td class="d1">ID</td>
									<!-- v1.6.7.2 RDPROJECT-564 zza 2013-12-11 end -->
									<td class="d1">借款项目</td>
									<td class="d2">还款日期</td>
									<td class="d3">借款本金</td>
									<td class="d4">借款利息</td>
								</tr>
								<#list list as item>
								<tr>
									<!-- v1.6.7.2 RDPROJECT-564 zza 2013-12-11 start -->
									<td class="d1">${item.id}</td>
									<!-- v1.6.7.2 RDPROJECT-564 zza 2013-12-11 end -->
									<td class="d1"><a href="${request.getContextPath()}/invest/detail.html?borrowid=${item.id?c}" target="_blank">${item.name!}</a></td>
									<td class="d2">${getRepaytime(item)}</td>
									<td class="d3">￥${item.account!}</td>
									<td class="d4">￥${getInterest(item)}</td>
								</tr>
								</#list>
							</table>
						</div>
					</div>
				</div>
			</div>
			<!-- v1.6.7.1 RDPROJECT-356 zza 2013-11-19 end -->

			<!--投资记录-->
			<div class="list-tab-con tab-pane " id="tzjl">
				<div class="box-detail-u clearfix">
					<div class="clearfix">
						<#include "../include/userbox.html">

						<div class="box-info-detail-u">
							<br>
							<div class="alert">
								<span>投资记录</span>
							</div>
							<#list investList as item>
								<p>
								<!-- v1.6.7.2 RDPROJECT-564 zza 2013-12-10 start -->
									${dateformat(item.tender_time!0)} 投标【<a href="${request.getContextPath()}/invest/detail.html?borrowid=${item.id?c}" title="${item.borrow_name!}"
										target="_blank">${item.borrow_name!}</a>】 金额(${item.account}元) 成功
								<!-- v1.6.7.2 RDPROJECT-564 zza 2013-12-10 end -->
								</p>
							</#list>
						</div>

					</div>
				</div>
			</div>
		</div>
	</div>
	<script src="${request.getContextPath()}${theme_dir}/media/js/modal.js"></script>
	<script src="${request.getContextPath()}${theme_dir}/media/js/tab.js"></script>
	<script src="${request.getContextPath()}${theme_dir}/media/js/transition.js"></script>
	<script src="${request.getContextPath()}${theme_dir}/media/js/tipswindown.js"></script>
	<div class="footer">
		<#include "../include/footer.html"> 
	</div>
</body>
</html>